//@flow

/**
 * 在这里处理关于数据库版本问题
 */
import Realm, {Configuration} from "realm";
import * as Config from "../../config/config";

import {Scheme1} from "./v1/scheme1";
import {migration1} from "./v1/migration1"

import { Scheme2 } from "./v2/scheme2";
import { migration2 } from "./v2/migration2";

export const Schemes : Array<Configuration> = [
    {schema:Scheme1,schemaVersion:1,migration:migration1,path:Config.REALM_PATH},
    {schema:Scheme2,schemaVersion:2,migration:migration2,path:Config.REALM_PATH},
]